import request from '@/utils/request'

// 查询潜在客户列表
export function listProspects(query) {
  return request({
    url: '/teacher/prospects/prospects/list',
    method: 'get',
    params: query
  })
}
// 查询用户列表
export function listUser(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query
  })
}
// 保存跟进记录
export function followUpLog(data){
  return request({
    url: '/teacher/log',
    method: "post",
    data: data
  })
}





//移交客户
export function turnOverClient(data){
  return request({
    url:'/teacher/prospects/prospects/turnOver',
    method: 'post',
    data: data
  })
}

// 查询潜在客户详细
export function getProspects(id) {
  return request({
    url: '/teacher/prospects/prospects/' + id,
    method: 'get'
  })
}

// 新增潜在客户
export function addProspects(data) {
  return request({
    url: '/teacher/prospects/prospects',
    method: 'post',
    data: data
  })
}

// 修改潜在客户
export function updateProspects(data) {
  return request({
    url: '/teacher/prospects/prospects',
    method: 'put',
    data: data
  })
}

// 删除潜在客户
export function delProspects(id) {
  return request({
    url: '/teacher/prospects/prospects/' + id,
    method: 'delete'
  })
}

// 转为正式学员
export function toFullTrainees(id){
  return request({
    url: '/teacher/prospects/prospects/toFullTrainees/' + id,
    method: "GET"
  })
}
